import 'package:json_annotation/json_annotation.dart';

part 'protocol.g.dart';

@JsonSerializable()
class Protocol {
  final int code;
  final String message;
  final dynamic data;

  Protocol(this.code, this.message, this.data);

  factory Protocol.fromJson(Map<String, dynamic> json) => _$ProtocolFromJson(json);

  Map<String, dynamic> toJson() => _$ProtocolToJson(this);
}
